﻿<?php
// No direct access.
//@author: hunguit@yahoo.com
//@author url: http://joomlavi.net

defined('_JEXEC') or die;
JHTML::_('behavior.framework', true);
/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
$tplparams	= $app->getTemplate(true)->params;
date_default_timezone_set("Asia/Ho_Chi_Minh");
$fr = strtotime(date("d-m-Y"));
$to = strtotime("20-10-2013");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
	
	<meta charset="utf-8" />
	<jdoc:include type="head" />
	
	<!--[if lte IE 9]><link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie.css" type="text/css" /><![endif]-->
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/1140.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/styles.css" type="text/css" />
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/css3-mediaqueries.js"></script>
	<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/niemtinmoi.js"></script>
	
</head>

<body id="bd">

<?php  if ($this->countModules('divAdLeft')) : ?>
<div id="divAdLeft" style="position: absolute; top: 130px; left: 0px;">
	<jdoc:include type="modules" name="divAdLeft" />
</div>
<?php endif; ?>

<?php if ($this->countModules('divAdRight')) : ?>
<div id="divAdRight" style="position: absolute; top: 130px;right: 0px;">
	<jdoc:include type="modules" name="divAdRight" />
</div>
<?php endif; ?>
<div class="jv_top_corner">
<div class="jv_top_left">
<div class="container jv_top">
	<div class="row">
		<div class="onecol"></div>
		<div class="tencol">
			<a href="./"><img src="./images/niemtinmoi/logo.png" /></a>
			<img src="./images/niemtinmoi/name_company.png" />
			<div class="menutop">
				<jdoc:include type="modules" name="menutop" />
			</div>
			<?php if ($this->countModules('address_top')) : ?>
			<div class="addtop"><jdoc:include type="modules" name="address_top" /></div>
			<?php endif;?>
		</div>
		<div class="onecol"></div>
	</div>
</div>
</div>
</div>
<div class="container jv_core">
	
	<div class="row">
		<div class="onecol">
		</div>
		<div class="tencol">
		  <?php if($fr<$to): ?><jdoc:include type="modules" name="corevalue" /><?php 
		  else: echo "<img src='".JURI::root()."templates/niemtinmoi/images/1.jpg' />" ;
		  endif;?>
		</div>
		<div class="onecol last">
			
		</div>
	</div>
</div>
<div class="container jv_slideshow">
	
	<div class="row">
		<div class="onecol">
		</div>
		<div class="tencol">
			 <?php if($fr<$to): ?><jdoc:include type="modules" name="slideshow" /><?php endif;?>
		</div>
		<div class="onecol last">
			
		</div>
	</div>
</div>
<div class="container wmccontent">
	<div class="row">
		<div class="onecol"></div>
		<div class="tencol">
			<div class="row" style="overflow: visible;">
				<div style="margin-right: 0.8%;" class="<?php if ($this->countModules('position-9')) echo "ninecol wmcmain"; else echo "twelvecol"; ?>">
					<main id="content" role="main" class="<?php echo $span;?>">
							<!-- Begin Content -->
							<jdoc:include type="modules" name="partner" style="partner" />
							<jdoc:include type="message" />
							<jdoc:include type="component" />
							
							<jdoc:include type="modules" name="position-2" style="none" />
							<jdoc:include type="modules" name="advertise" style="none" />
							
							<!-- End Content -->
					</main>
				</div>
				<?php if ($this->countModules('position-9')) : ?>
				<div style="width: 25.05%;" class="threecol last wmcleft">
						<!-- Begin Right Sidebar -->
						<jdoc:include type="modules" name="tuvan" style="xhtml" />
						<jdoc:include type="modules" name="position-9" style="colright" />
						<!-- End Right Sidebar -->
				</div>
				<?php endif; ?>
			</div><!-- end div.row-->	
		</div><!-- end div.tencol-->
		<div class="onecol last"></div>
	</div>
</div>

<div class="container">
	<div class="row">
		<div class="twocol">
			
		</div>
		<div class="tencol">
			<div class="top_bg_foot"></div>
			
		</div>
		<div class="twocol last">
			
		</div>
	</div>
</div>
<div class="container menu_footer">
	<div class="row">
		<div class="twocol">
			
		</div>
		<div class="tencol">
			<jdoc:include type="modules" name="menu_footer"  style="xhtml"/>
		</div>
		<div class="twocol last">
			
		</div>
	</div>
</div>
<div class="container footer_infor">
	<div class="row">
		<div class="twocol">
			
		</div>
		<div class="elevencol">
			<jdoc:include type="modules" name="footer_info"  style="xhtml"/>
		</div>
		<div class="onecol last">
			
		</div>
	</div>
</div>
	                             
</div><!-- end #jv-wrapper--> 

<!--
<div id="SinhVienIT-Toolbar">
	<a href="#">THIẾT KẾ LOGO</a> 
	<a href="#">THƯƠNG HIỆU</a> 
	<a href="#">NHÃN HIỆU</a> 
	<a href="#">LỊCH</a>
	<a href="#">CATALOG</a> 
	<a href="#">TẠP CHÍ</a> 
	<a href="#">POSTER</a>
</div>
<div id="totop"> -->
</div>

<script>
MainContentW = 980;
LeftBannerW = 150;
RightBannerW = 0;
LeftAdjust = 0;
RightAdjust = 0;
TopAdjust = 130;
ShowAdDiv();
window.onresize=ShowAdDiv;
function FloatTopDiv()
{
	startLX = ((jQuery(window).width() -MainContentW)/2)-LeftBannerW-LeftAdjust , startLY = TopAdjust+80;
	startRX = ((jQuery(window).width() -MainContentW)/2)+MainContentW+RightAdjust , startRY = TopAdjust+80;

	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		el.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';};
		el.x = startRX;
		el.y = startRY;
		return el;
	}
	function m2(id)
	{
		var e2=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		e2.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';};
		e2.x = startLX;
		e2.y = startLY;
		return e2;
	}
	window.stayTopLeft=function()
	{
		if (document.documentElement && document.documentElement.scrollTop)
			var pY =  document.documentElement.scrollTop;
		else if (document.body)
			var pY =  document.body.scrollTop;
		if (document.body.scrollTop > 30){startLY = 3;startRY = 3;} 
		else {startLY = TopAdjust;startRY = TopAdjust;};
		
		ftlObj.y += (pY+startRY-ftlObj.y)/16;
		
		ftlObj.sP(ftlObj.x, ftlObj.y);
		
		ftlObj2.y += (pY+startLY-ftlObj2.y)/16;
		
		ftlObj2.sP(ftlObj2.x, ftlObj2.y);
		
		setTimeout("stayTopLeft()", 1);
	}
	
	
	ftlObj = ml("divAdRight");
	ftlObj2 = m2("divAdLeft");
	stayTopLeft();

}
function ShowAdDiv()
{
	var objAdDivRight = document.getElementById("divAdRight");
	var objAdDivLeft = document.getElementById("divAdLeft");        
	
	if (document.body.clientWidth < 980)
	{
		objAdDivRight.style.display = "none";
		objAdDivLeft.style.display = "none";
	}
	else
	{
		
		objAdDivRight.style.display = "block";
		
		objAdDivLeft.style.display = "block";
		
		FloatTopDiv();
	}
}
  



</script>	
</body>
</html>